<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <script src="../lib/jquery/jquery.js"></script>
    <style>
    div{
        width: 500px;
        height: 500px;
        background-color: gold;
        padding: 20px;
    }
    p{
        width: 250px;
        height: 250px;
        background-color: greenyellow;
    }
    </style>
</head>

<body>
    <div>
        <p  ></p>
    </div>
</body>
<script>


    function cli(){
        console.log(this);
        //  p  
        // window
    }

    // document.querySelector("div").onclick=cli;

    /*事件委托*/

    // $("div").on("click","p",cli);
        $("div").click(cli);

</script>
</html>